import request from '@/utils/request'
//非工单工时列表
export function getList(query) {
  return request({
    url: '/mes/nonworkorder/record/list',
    method: 'get',
    params: query
  })
}
//2.新增工时填报
export function addRecord(data) {
  return request({
    url: '/mes/nonworkorder/record/add',
    method: 'post',
    data: data
  })
}
//修改工时填报
export function updateRecord(data) {
  return request({
    url: '/mes/nonworkorder/record/edit',
    method: 'post',
    data: data
  })
}
//删除工时填报
export function delRecord(ids) {
  return request({
    url: '/mes/nonworkorder/record/' + ids,
    method: 'delete'
  })
}
